﻿<%@ Page Title="" Language="C#" MasterPageFile= "~/View/Master.Master" AutoEventWireup="true" CodeBehind="ViewDeptReqList.aspx.cs" Inherits="PresentationLayer.View.StoreClerk.ViewDeptReqList" EnableEventValidation="false" %>
<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <table width="100%">
    <tr>
        <td style="height:auto;width:250px;vertical-align:top;">

            <uc1:mainMenu ID="mainMenu1" runat="server" />

        </td>
        <td>
    <asp:Label ID="lbl_message" runat="server" Text="Label" Visible="False"></asp:Label>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;
   
    <asp:gridview id="gv_ViewDeptReqList" runat="server" 
        autogeneratecolumns="False" AllowPaging="True" 
            DataKeyNames="DeptId" 
      Width="450px" CellPadding="4" 
        ForeColor="#333333" GridLines="None" Height="294px" style="margin-left: 0px" 
           onrowcommand="gv_ViewDeptReqList_RowCommand" >
        <AlternatingRowStyle BackColor="White" />
       <columns>
       <asp:BoundField DataField="DeptId" HeaderText="Department ID" />              
     <asp:boundfield datafield="DeptName" HeaderText="Department Name" /> 
    
         
         <asp:TemplateField ShowHeader="False">
             <ItemTemplate>
                 <asp:Button ID="Button1" runat="server" CausesValidation="false" 
                     CommandName="ViewDetails" Text="View Details"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                
                <asp:Label ID="lbl" runat="server" Text='<%# ((GridViewRow) Container).RowIndex %>'></asp:Label>
                 
             </ItemTemplate>
         </asp:TemplateField>
     </columns> 
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
  
            <asp:GridView ID="gv_ViewDeptReqListDetails" runat="server" AllowPaging="True" 
            autogeneratecolumns="False" CellPadding="4" DataKeyNames="DeptId" 
            ForeColor="#333333" GridLines="None" Height="294px" 
            style="margin-left: 0px" Width="450px" Visible="False">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <columns>
                    <asp:TemplateField HeaderText="Category ID">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CategoryId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("CategoryId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Category Name">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CategoryName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("CategoryName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Item Count">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ItemCount") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("ItemCount") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            </asp:GridView>
   </td></tr></table>
    </asp:Content>
